package com.example.demo.mongo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author wn
 * @since 2021-08-14
 */
@ApiModel(value="MDeviceRelat对象", description="")
public class MDeviceRelat extends Model<MDeviceRelat> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "设备id")
    private String deviceId;

    @ApiModelProperty(value = "设备sn")
    private String deviceSn;


    public Integer getId() {
        return id;
    }

    public MDeviceRelat setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public MDeviceRelat setDeviceId(String deviceId) {
        this.deviceId = deviceId;
        return this;
    }

    public String getDeviceSn() {
        return deviceSn;
    }

    public MDeviceRelat setDeviceSn(String deviceSn) {
        this.deviceSn = deviceSn;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MDeviceRelat{" +
        "id=" + id +
        ", deviceId=" + deviceId +
        ", deviceSn=" + deviceSn +
        "}";
    }
}
